home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / c-lang / strmc105.lha / StormC-Demo / INCLUDE / clib / alib_protos.h next >
C/C++ Source or Header  |  1996-01-02  |  5KB  |  143 lines

  1. #ifndef  CLIB_ALIB_PROTOS_H
  2. #define  CLIB_ALIB_PROTOS_H
  3.  
  4. /*
  5. **    $VER: alib_protos.h 1.5 (25.8.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  DEVICES_TIMER_H
  18. #include <devices/timer.h>
  19. #endif
  20. #ifndef  DEVICES_KEYMAP_H
  21. #include <devices/keymap.h>
  22. #endif
  23. #ifndef  LIBRARIES_COMMODITIES_H
  24. #include <libraries/commodities.h>
  25. #endif
  26. #ifndef  UTILITY_HOOKS_H
  27. #include <utility/hooks.h>
  28. #endif
  29. #ifndef  INTUITION_CLASSES_H
  30. #include <intuition/classes.h>
  31. #endif
  32. #ifndef  INTUITION_CLASSUSR_H
  33. #include <intuition/classusr.h>
  34. #endif
  35. #ifndef  GRAPHICS_GRAPHINT_H
  36. #include <graphics/graphint.h>
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. /*  Exec support functions */
  44.  
  45. void BeginIO( struct IORequest *ioReq );
  46. struct IORequest *CreateExtIO( struct MsgPort *port, long ioSize );
  47. struct MsgPort *CreatePort( STRPTR name, long pri );
  48. struct IOStdReq *CreateStdIO( struct MsgPort *port );
  49. struct Task *CreateTask( STRPTR name, long pri, APTR initPC,
  50.     unsigned long stackSize );
  51. void DeleteExtIO( struct IORequest *ioReq );
  52. void DeletePort( struct MsgPort *ioReq );
  53. void DeleteStdIO( struct IOStdReq *ioReq );
  54. void DeleteTask( struct Task *task );
  55. void NewList( struct List *list );
  56. APTR LibAllocPooled( APTR poolHeader, unsigned long memSize );
  57. APTR LibCreatePool( unsigned long memFlags, unsigned long puddleSize,
  58.     unsigned long threshSize );
  59. void LibDeletePool( APTR poolHeader );
  60. void LibFreePooled( APTR poolHeader, APTR memory, unsigned long memSize );
  61.  
  62. /* Assorted functions in amiga.lib */
  63.  
  64. ULONG FastRand( unsigned long seed );
  65. UWORD RangeRand( unsigned long maxValue );
  66.  
  67. /* Graphics support functions in amiga.lib */
  68.  
  69. void AddTOF( struct Isrvstr *i, long (*p)(), long a );
  70. void RemTOF( struct Isrvstr *i );
  71. void waitbeam( long b );
  72.  
  73. /* math support functions in amiga.lib */
  74.  
  75. FLOAT afp( BYTE *string );
  76. void arnd( long place, long exp, BYTE *string );
  77. FLOAT dbf( unsigned long exp, unsigned long mant );
  78. LONG fpa( FLOAT fnum, BYTE *string );
  79. void fpbcd( FLOAT fnum, BYTE *string );
  80.  
  81. /* Timer support functions in amiga.lib (V36 and higher only) */
  82.  
  83. LONG TimeDelay( long unit, unsigned long secs, unsigned long microsecs );
  84. LONG DoTimer( struct timeval *, long unit, long command );
  85.  
  86. /*  Commodities functions in amiga.lib (V36 and higher only) */
  87.  
  88. void ArgArrayDone( void );
  89. UBYTE **ArgArrayInit( long argc, UBYTE **argv );
  90. LONG ArgInt( UBYTE **tt, STRPTR entry, long defaultval );
  91. STRPTR ArgString( UBYTE **tt, STRPTR entry, STRPTR defaulstring );
  92. CxObj *HotKey( STRPTR description, struct MsgPort *port, long id );
  93. struct InputEvent *InvertString( STRPTR str, struct KeyMap *km );
  94. void FreeIEvents( struct InputEvent *events );
  95.  
  96. /* Commodities Macros */
  97.  
  98. /* CxObj *CxCustom(LONG(*)(),LONG id)(A0,D0) */
  99. /* CxObj *CxDebug(LONG id)(D0) */
  100. /* CxObj *CxFilter(STRPTR description)(A0) */
  101. /* CxObj *CxSender(struct MsgPort *port,LONG id)(A0,D0) */
  102. /* CxObj *CxSignal(struct Task *task,LONG signal)(A0,D0) */
  103. /* CxObj *CxTranslate(struct InputEvent *ie)(A0) */
  104.  
  105. /*  ARexx support functions in amiga.lib */
  106.  
  107. BOOL CheckRexxMsg( struct Message *rexxmsg );
  108. LONG GetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE **result );
  109. LONG SetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE *value,
  110.     long length );
  111.  
  112. /*  Intuition hook and boopsi support functions in amiga.lib. */
  113. /*  These functions do not require any particular ROM revision */
  114. /*  to operate correctly, though they deal with concepts first introduced */
  115. /*  in V36.  These functions would work with compatibly-implemented */
  116. /*  hooks or objects under V34. */
  117.  
  118. ULONG CallHookA( struct Hook *hookPtr, Object *obj, APTR message );
  119. ULONG CallHook( struct Hook *hookPtr, Object *obj, ... );
  120. ULONG DoMethodA( Object *obj, Msg message );
  121. ULONG DoMethod( Object *obj, unsigned long MethodID, ... );
  122. ULONG DoSuperMethodA( struct IClass *cl, Object *obj, Msg message );
  123. ULONG DoSuperMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  124.     ... );
  125. ULONG CoerceMethodA( struct IClass *cl, Object *obj, Msg message );
  126. ULONG CoerceMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  127.     ... );
  128. ULONG SetSuperAttrs( struct IClass *cl, Object *obj, unsigned long Tag1,
  129.     ... );
  130.  
  131. /*  Network-support functions in amiga.lib. */
  132. /*  ACrypt() first appeared in later V39 versions of amiga.lib, but */
  133. /*  operates correctly under V37 and up. */
  134.  
  135. STRPTR ACrypt( STRPTR buffer, STRPTR password, STRPTR username );
  136.  
  137. #ifdef __cplusplus
  138. }
  139. #endif
  140.  
  141.  
  142. #endif     /* CLIB_ALIB_PROTOS_H */
  143.